package com.yunzhi.service.impl;

import com.yunzhi.entity.User;
import com.yunzhi.service.UserService;
import org.apache.dubbo.config.annotation.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * @author :Mikey
 * @description :
 * @create :2022-06-24 18:21:00
 */
@Service
public class UserServiceImpl implements UserService {
    @Override
    public List<User> findall() {
        List<User> users =new ArrayList<>();
        for (int i = 0; i < 10; i++) {
            User user = new User(i,"mikey"+i,"123"+i);
            users.add(user);
        }
        return users;
    }
}
